package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.domain.Category;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.PageBean;
import com.itheima.reggie.dto.DishDto;
import org.springframework.transaction.annotation.Transactional;

import java.beans.Transient;
import java.util.List;

public interface DishService extends IService<Dish> {

    @Transactional
    void addDish(DishDto dishDto);

    //Page<Dish> findPage(int page, int pageSize);
    //菜品分页查询
    PageBean findPage(int page, int pageSize,String name);

    DishDto selectById(Long id);


    @Transactional
    void update(DishDto dishDto);

    List<DishDto> findByCategoryId(Dish dish);

    void getStatus(int status, Long[] ids);

   // void getDishStatus(int status, List<Long> ids);
}
